

<div class="content">

	<div class="header">
		<div class="page-title">
                    <div>
                        <h1><i class="icon-user"></i> User</h1>
                        <h4>List User</h4>
                    </div>
        </div>		
	</div>

	<div class="container-fluid">
		<div class="row-fluid">

			<div class="btn-toolbar text-right">
				<a href="<?php echo base_url().'dashboard/user/add'; ?>" class="btn btn-primary"><i class="icon-plus"></i> New User</a>			
			</div>
			
            <!-- BEGIN Main Content -->
			<div class="row-fluid">
                    <div class="span12">
                        <div class="box">
                            <div class="box-title">
                                <h3><i class="icon-user"></i> List User</h3>
                            </div>
                            <div class="box-content">
                                <table class="table table-striped table-hover fill-head">
                                    <thead>
                                        <tr>
                                            <th>#</th>
                                            <th>Display Name</th>
                                            <th>Email</th>
                                            <th>Group Name</th>
                                            <th style="width: 150px">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    
                                    <?php
                                    	$i = 1; 
                                    	foreach ($rsUsers as $rowUser) :
	                                    	$url_activate = base_url().'dashboard/user/activate/'.$rowUser['id'];
                                    		$url_edit = base_url().'dashboard/user/edit/'.$rowUser['id'];
	                                    	$url_delete = base_url().'dashboard/user/delete/'.$rowUser['id'];
                                    ?>
                                    
                                        <tr>
                                            <td><?php echo $i; ?></td>
                                            <td><?php echo h($rowUser['display_name']); ?></td>
                                            <td><?php echo h($rowUser['email']); ?></td>
                                            <td><?php echo h($rowUser['group_id']); ?></td>
                                            <td>
												<?php if ($rowUser['activated'] == 1) : ?>
													<a href="<?php echo $url_activate; ?>" title="" class="btn btn-small btn-lime"><i class="icon-check"></i></a>													
												<?php else :?>
													<a href="<?php echo $url_activate; ?>" title="" class="btn btn-small btn-warning"><i class="icon-check-empty"></i></a>													
												<?php endif;?>
													
							                    <a href="<?php echo $url_edit; ?>" title="" class="btn btn-small btn-gray"><i class="icon-edit"></i></a>
<!-- 								                    <a data-toggle="modal" href="#myModal" title="" class="btn btn-small btn-danger"><i class="icon-trash"></i></a> -->
							                    <a href="javascript:confimDelete('<?php echo $url_delete; ?>');" title="" class="btn btn-small btn-danger"><i class="icon-trash"></i></a>								                    
                                            </td>
                                        </tr>
                                        
									<?php
											$i++;	 
										endforeach; 
									?>                                        
                                        
                                        
                                    </tbody>
                                </table>
                            
<!-- 								<div class="pagination text-left"> -->
<!--                                     <ul> -->
<!--                                         <li><a href="#">← Prev</a></li> -->
<!--                                         <li><a href="#">1</a></li> -->
<!--                                         <li><a href="#">2</a></li> -->
<!--                                         <li class="active"><a href="#">3</a></li> -->
<!--                                         <li><a href="#">4</a></li> -->
<!--                                         <li><a href="#">5</a></li> -->
<!--                                         <li><a href="#">6</a></li> -->
<!--                                         <li><a href="#">Next → </a></li> -->
<!--                                     </ul> -->
<!-- 	                            </div>                             -->
                            
                            </div>
                            
                        </div>
                    </div>
			</div>
			<!-- END Main Content -->
                			
			
		</div>
	</div>
</div>


